package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.UserDAO;
import de.thw.web.model.User;
import de.thw.web.service.UserService;

@Service
public class UserServiceImpl extends AbstractServiceImpl<User> implements
		UserService {

	@Autowired
	private UserDAO daoUser;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(User object) {
		super.save(object, this.daoUser);
	};

	@Transactional
	public User load(String uid) {
		return super.load(uid, this.daoUser);
	};

	@Transactional
	public List<User> getAll() {
		return super.getAll(this.daoUser);
	};

};